SG FileSys | |
ExcludedExt Property |
Enumerator Object Constants Error Codes |
Returns or sets string that contains list of file extensions that are not enumerated.
object.ExcludedExt As String
The object is expression that evaluates to the Enumerator object.
Extensions must be separated with semicolon (:) character.
Following example lists files from the C:/Projects and it's subdirectories. Files and directories with extensions 'obj', 'pch' and 'pdb' are not listed.
Option Explicit Dim en, item Set en = CreateObject("SGFileSys.Enumerator") en.RootPath = "C:/Projects/" en.Recurse = True en.NameMask = "*.*" en.ExcludedExt = "obj:pch:pdb" For Each item In en.Items WScript.Echo item.Path Next